Namespaces

Types in FluentNHibernate.Mapping.Builders

Type MapBuilder<TKey, TValue>

Namespace FluentNHibernate.Mapping.Builders

Methods

Properties

Public instance methods

MapBuilder<TKey, TValue> AsEntityMap()

MapBuilder<TKey, TValue> Component(Action<CompositeElementBuilder<TValue>> componentBuilder)

Define a component (composite-element) to be used as the value of the dictionary.
Parameters
Action<CompositeElementBuilder<TValue>> componentBuilder

Builder action

Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> ComponentIndex(Action<CompositeIndexBuilder<TKey>> componentBuilder)

Define a component for use as the index (composite-index) or dictionary key.
Parameters
Action<CompositeIndexBuilder<TKey>> componentBuilder

Builder action

Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> DictionaryKey(Action<IndexBuilder> indexConfiguration)

Specify how the index (or key) is configured.
Parameters
Action<IndexBuilder> indexConfiguration

Configuration Action

Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> DictionaryKey(string indexColumnName)

Specifies the name of the column used for the keys of the dictionary, while using the type inferred from the dictionary signature.
Parameters
string indexColumnName

Key column name

Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> DictionaryKey<TIndexType>(string indexColumnName)

Specifies the name of the column used for the keys of the dictionary, and the type of the key.
Parameters
string indexColumnName

Key column name

Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> DictionaryKey<TIndexType>()

Specifies the type of the keys used for the dictionary, while using the default column name.
Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> DictionaryValue(string elementColumnName)

Specifies the name of the column used for the values of the dictionary, while using the type inferred from the dictionary signature.
Parameters
string elementColumnName

Value column name

Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> DictionaryValue(Action<ElementBuilder> elementConfiguration)

Specify how the element (or value) is configured.
Parameters
Action<ElementBuilder> elementConfiguration

Configuration Action

Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> DictionaryValue<TElementType>(string elementColumnName)

Specifies the name of the column used for the values of the dictionary, and the type of the values.
Parameters
string elementColumnName

Value column name

Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> DictionaryValue<TElementType>()

Specifies the type of the values contained in the dictionary, while using the default column name.
Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> ExtraLazy()

Specifies whether this collection is extra lazy
Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> ForeignKey(Action<KeyBuilder> keyConfiguration)

Specify how the foreign key is configured.
Parameters
Action<KeyBuilder> keyConfiguration

Configuration Action

Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> ManyToMany(Action<ManyToManyBuilder> relationshipConfiguration)

Specify the relationship is a many-to-many, this implies that the key and value columns of the dictionary will be stored in a separate table.
Parameters
Action<ManyToManyBuilder> relationshipConfiguration

Builder for many-to-many

Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> ManyToMany()

Specify the relationship is a many-to-many, this implies that the key and value columns of the dictionary will be stored in a separate table.
Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> ManyToMany<TChild>()

Specify this relationship as a many-to-many of
Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> OneToMany()

Specify the relationship is a one-to-many, this implies the key and value columns of the dictionary will be stored in the child table.
Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> OneToMany(Action<OneToManyBuilder> relationshipConfiguration)

Specify the relationship is a one-to-many, this implies the key and value columns of the dictionary will be stored in the child table.
Parameters
Action<OneToManyBuilder> relationshipConfiguration

Builder for one-to-many

Return
MapBuilder<TKey, TValue>

Builder

MapBuilder<TKey, TValue> OneToMany<TChild>()

Specify this relationship as a one-to-many of
Return
MapBuilder<TKey, TValue>

Builder

Public properties

AccessStrategyBuilder<T> Access get;

Specify the access strategy for the map property

CollectionCascadeExpression<TParent> Cascade get;

Specify the cascade strategy for the collection

FetchTypeExpression<TParent> Fetch get;

Specify the cascade strategy for the collection

MapBuilder<TKey, TValue> Not get;

Inverts the next boolean operation

SortBuilder<T> Sort get;

Specify the sorting for the dictionary.